<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<html>
<head>
    <meta charset="utf-8">
    <title>质量成本基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .qbdms-formBody{
            border: none;
        }
        .qbdms-textarea{
            margin: 8px 0;
        }
        .groupQualityCost{
            border: 1px solid #E4E7ED;
        }
        .groupQualityCostItem{
            height:64px;background-color: #F9FBFE;margin-top: 8px;border: 1px solid #E4E7ED; border-bottom: none;
        }
       .multilinebrea {
           height: 36px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }
    </style>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="layui-form formPreview" requrl="${ctx}/qbdms/wQbdQualityCost/get" lay-filter="wQbdQualityCostDataForm">
            <div class="qbdms-formTitle">质量成本信息 <i  class="qbdms-returnOn closeWindow">返回</i></div>
            <div class="">
                <div class="groupQualityCost">
                    <div class="dragInfo temSpace" id="tbxx"></div>
                    <div class="layui-row">
                        <div class="" style="display: none;">
                            <label class="layui-form-label qbdms-label" title="主键">主键</label>
                            <div class="layui-input-block qbdms-input">
                                <input type="text" name="id"  placeholder="请输入" fieldname="id"
                                       autocomplete="off" class="layui-input" maxlength="50">
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="单位名称">单位名称</label>
                            <div class="layui-input-block qbdms-input">
                                <input type="text" name="companyName"  placeholder="请输入"
                                       autocomplete="off" class="layui-input" maxlength="50" fieldname="companyName" disabled/>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <@secSelect.sec_select required=true data_src=1 name="secret"/>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="年度">年度<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <input type="text" name="year"  placeholder="请输入"
                                       autocomplete="off" id="year" class="layui-input dateTimeFiled time-init year" maxlength="50" fieldname="year"
                                       lay-verify="required" lay-reqtext="年度是必填项" readonly/>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="统计期">统计期<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <@dicSelect.dic name="statisticalPeriod" nodeKey="tjq" activity=true verify="required"  reqtext="统计期是必填项"/>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="型号代号">型号代号<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <select name="modelCode" id="modelCode" lay-filter="modelCode" lay-verify="required" lay-reqtext="型号代号是必填项"/></select>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="型号名称">型号名称<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <input type="text" name="modelName"  placeholder="请输入"
                                       autocomplete="off" class="layui-input textInput"
                                       maxlength="50" fieldname="modelName" disabled lay-verify="required" lay-reqtext="型号名称是必填项"/>
                            </div>
                        </div>
                        <div class="qbdms-oneForm  ">
                            <label class="layui-form-label qbdms-label" title="型号类别">型号类别<span style="color: red;">*</span></label>
                            <div class="layui-input-block qbdms-input">
                                <@dicSelect.dic name="modelType" nodeKey="xhlb" activity=true verify="required" reqtext="型号类别是必填项" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCostItem">
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="预防成本(万元)">预防成本(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="preventionCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="preventionCost" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量工作费(万元)">质量工作费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityOperatingExpenses"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityOperatingExpenses" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量教育培训费(万元)">质量教育培训费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityEdducationTrainFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityEdducationTrainFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量评审费(万元)">质量评审费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityReviewFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityReviewFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量奖励费(万元)">质量奖励费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityIncentiveFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityIncentiveFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量改进措施费(万元)">质量改进措施费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityInprovementMeasure"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityInprovementMeasure" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="质量管理人员薪酬(万元)">质量管理人员薪酬(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="qualityManagementPersonnel"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput prevention"
                                   maxlength="12" fieldname="qualityManagementPersonnel" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div class="groupQualityCostItem" >
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="鉴定成本(万元)">鉴定成本(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="appraisalCosts"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="appraisalCosts" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="检验试验办公费(万元)">检验试验办公费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="inspectionTestOfficeExpense"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="inspectionTestOfficeExpense" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="检验设备折旧费(万元)">检验设备折旧费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="equipmentDepreciationCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="equipmentDepreciationCost" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="检验试验费(万元)">检验试验费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="inspectionTestFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="inspectionTestFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="鉴定人员薪酬(万元)">鉴定人员薪酬(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="salaryAppraisers"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="salaryAppraisers" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="检验设备维护校对费(万元)">检验设备维护校对费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="equipmentMaintenance"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="equipmentMaintenance" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="鉴定成本其他(万元)">其他(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="appraisalCostOther"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput appraisal"
                                   maxlength="12" fieldname="appraisalCostOther" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div class="groupQualityCostItem">
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="内部故障成本(万元)">内部故障成本(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="internalFailureCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="internalFailureCost" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="报废损失费(万元)">报废损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="scrapLossExpenses"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="scrapLossExpenses" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="更改设计损失费(万元)">更改设计损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="changeDesignLossFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="changeDesignLossFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="备件损失(万元)">备件损失(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="sparePartsCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="sparePartsCost" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="事故分析损失费(万元)">事故分析损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="accidentAnalysisLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="accidentAnalysisLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="返工返修损失费(万元)">返工返修损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="reworkRepairLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="reworkRepairLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="产品降级损失费(万元)">产品降级损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="productDegradationLossFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="productDegradationLossFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="停工损失(万元)">停工损失(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="stopLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="stopLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="试验损失费(万元)">试验损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="testLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="testLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="内部故障成本其他(万元)">其他(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="internalFailureCostOther"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput internalFailure"
                                   maxlength="12" fieldname="internalFailureCostOther" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div class="groupQualityCostItem">
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本(万元)">外部故障成本(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="externalFailureCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="externalFailureCost" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="索赔损失费(万元)">索赔损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="claimForLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="claimForLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="产品降价损失费(万元)">产品降价损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="productPriceReductionLoss"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="productPriceReductionLoss" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="退货损失费(万元)">退货损失费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="lossOnReturns"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="lossOnReturns" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="诉讼费(万元)">诉讼费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="legalFees"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="legalFees" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="保修费(万元)">保修费(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="maintenanceFee"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="maintenanceFee" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本其他(万元)">其他(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="externalFailureCostOther"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput externalFailure"
                                   maxlength="12" fieldname="externalFailureCostOther" lay-verify="money"/>
                        </div>
                    </div>
                </div> </div>
                <div class="groupQualityCostItem">
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本(A)(万元)">外部故障成本(A)(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="externalFailureCostA"  placeholder="请输入外部故障成本(A)(万元)"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="externalFailureCostA" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="索赔损失费(A)(万元)">索赔损失费(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="claimForLossA"  placeholder="请输入索赔损失费(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="claimForLossA" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="产品降价损失费(A)(万元)">产品降价损失费(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="productPriceReductionLossA"  placeholder="请输入产品降价损失费(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="productPriceReductionLossA" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="退货损失费(A)(万元)">退货损失费(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="lossOnReturnsA"  placeholder="请输入退货损失费(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="lossOnReturnsA" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="诉讼费(A)(万元)">诉讼费(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="legalFeesA"  placeholder="请输入诉讼费(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="legalFeesA" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="保修费(A)(万元)">保修费(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="maintenanceFeeA"  placeholder="请输入保修费(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="maintenanceFeeA" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本其他(A)(万元)">其他(A)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="externalFailureCostOtherA"  placeholder="请输入外部故障成本其他(A)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureA"
                                   maxlength="12" fieldname="externalFailureCostOtherA" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div class="groupQualityCostItem">
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本(B)(万元)">外部故障成本(B)(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="externalFailureCostB"  placeholder="请输入外部故障成本(B)(万元)"
                                   autocomplete="off" class="layui-input textInput" style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="externalFailureCostB" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="索赔损失费(B)(万元)">索赔损失费(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="claimForLossB"  placeholder="请输入索赔损失费(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="claimForLossB" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="产品降价损失费(B)(万元)">产品降价损失费(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="productPriceReductionLossB"  placeholder="请输入产品降价损失费(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="productPriceReductionLossB" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="退货损失费(B)(万元)">退货损失费(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="lossOnReturnsB"  placeholder="请输入退货损失费(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="lossOnReturnsB" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="诉讼费(B)(万元)">诉讼费(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="legalFeesB"  placeholder="请输入诉讼费(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="legalFeesB" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="保修费(B)(万元)">保修费(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="maintenanceFeeB"  placeholder="请输入保修费(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="maintenanceFeeB" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本其他(B)(万元)">其他(B)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="externalFailureCostOtherB"  placeholder="请输入外部故障成本其他(B)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureB"
                                   maxlength="12" fieldname="externalFailureCostOtherB" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div class="groupQualityCostItem" >
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本(C)(万元)">外部故障成本(C)(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="externalFailureCostC"  placeholder="请输入外部故障成本(C)(万元)"
                                   autocomplete="off" class="layui-input textInput " style="min-width: 264.25px;width: 18%;"
                                   maxlength="20" fieldname="externalFailureCostC" lay-verify="money" disabled/>
                        </div>
                    </div>
                </div>
                <div class="groupQualityCost"> <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="索赔损失费(C)(万元)">索赔损失费(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="claimForLossC"  placeholder="请输入索赔损失费(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="claimForLossC" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="产品降价损失费(C)(万元)">产品降价损失费(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="productPriceReductionLossC"  placeholder="请输入产品降价损失费(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="productPriceReductionLossC" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="退货损失费(C)(万元)">退货损失费(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="lossOnReturnsC"  placeholder="请输入退货损失费(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="lossOnReturnsC" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="诉讼费(C)(万元)">诉讼费(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="legalFeesC"  placeholder="请输入诉讼费(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="legalFeesC" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="保修费(C)(万元)">保修费(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="maintenanceFeeC"  placeholder="请输入保修费(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="maintenanceFeeC" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="外部故障成本其他(C)(万元)">其他(C)(万元)</label>
                        <div class="layui-input-block qbdms-input qbdms-money">
                            <input type="text" name="externalFailureCostOtherC"  placeholder="请输入外部故障成本其他(C)(万元)"
                                   autocomplete="off" class="layui-input textInput externalFailureC"
                                   maxlength="12" fieldname="externalFailureCostOtherC" lay-verify="money"/>
                        </div>
                    </div>
                </div></div>
                <div style="width: 100%;float: left">
                    <div class="qbdms-textarea  " style="width: 50%;">
                        <label class="layui-form-label qbdms-label multilinebrea" title="军品营业总收入（财务快报数）(万元)">军品营业总收入（财务快报数）(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="totalMilitaryRevenue"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput"
                                   maxlength="12" fieldname="totalMilitaryRevenue" lay-verify="money"/>
                        </div>
                    </div>
                    <div class="qbdms-textarea  " style="width: 50%;">
                        <label class="layui-form-label qbdms-label multilinebrea" title="军品营业总成本（财务快报数）(万元)">军品营业总成本（财务快报数）(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="totalMilitaryOperatingCost"  placeholder="请输入"
                                   autocomplete="off" class="layui-input textInput"
                                   maxlength="12" fieldname="totalMilitaryOperatingCost" lay-verify="money" />
                        </div>
                    </div>
                </div>

                </div>

            <div class="layui-form-item btnformItem">
                <p>
                    <span id="hideAndShow" style="display: none;">
                        <a lay-submit lay-filter="wQbdQualityCost" class="layui-btn btn-n privateSubmit qbdms-oneBtn"
                           requrl="${ctx}/qbdms/wQbdQualityCost/save">提交</a>
                    </span>
                    <button type="reset" id="closeWindow" style="margin-left: 10px;"
                            class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
                    </button>
                </p>
            </div>
        </form>
    </div>
</div>

<script type="text/html" template>

</script>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter','layer','form', 'table', 'common', 'laydate', 'jquery', 'qbdmsForm','publicMethods'], function () {

        var $ = layui.jquery,
            laydate = layui.laydate,
            setter = layui.setter,  // 配置信息
            layer = layui.layer,
            publicMethods = layui.publicMethods,
            form = layui.qbdmsForm;

        var dateTimeFiledLen = $(".dateTimeFiled");

        //年选择器
        laydate.render({
            elem: '#year'
            , type: 'year'
            , trigger: 'click'
        });

        //- 添加表单验证规则 开始 ---------------------------------------------------------------------
        form.verify({
//            integer: [/^[+]{0,1}(\d+)$/,'请输入正整数'],
//            money: [/^((0{1}\.\d{1,2})|([1-9]\d*\.{1}\d{1,2})|([1-9]+\d*))$/,'请输入正整数和两位小数的数据'],
            length100: [/^.{0,100}$/, '输入字符数不能超过100'],
            length2000: [/^.{0,2000}$/, '输入字符数不能超过2000'],
            fileRequired: [/[\S]+/, "没有上传对应附件"],
            money: function (value) {
                if (value && !new RegExp(/^((0{1}\.\d{1,2})|([1-9]\d*\.{1}\d{1,2})|([1-9]+\d*))$/).test(value)) {
                    return '请输入数字且小数最多两位';
                }
            },
            integer: function (value) {
                if (value && !new RegExp(/^[+]{0,1}(\d+)$/).test(value)) {
                    return '请输入正整数';
                }
            }
        });
        //- 添加表单验证规则 结束 ---------------------------------------------------------------------

        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }

        var id = "${id}";
        if (id == null || id === '') {
            $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【${filldept}   | ${fillman}  | ${filldate}】</span>");
        }

        form.on('select(modelCode)', function (data) {
            $("input[name='modelName']").val(data.elem[data.elem.selectedIndex].getAttribute("xhmc"));
        });

        var companyName = "${companyName}";
        $("input[name='companyName']").val(companyName);

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = '${ctx}/qbdms/wQbdQualityCost/view/list';
        });

        //- 计算总金额 绑事件 开始 -------------------------------------------------------------
        // 预防成本
        $(document).on("blur", ".prevention", preventionMoney);
        function preventionMoney() {
            var objArr = $(".prevention");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='preventionCost']").val(Math.round(sumMoney * 100) / 100);
        }

        // 鉴定成本
        $(document).on("blur", ".appraisal", appraisalMoney);
        function appraisalMoney() {
            var objArr = $(".appraisal");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='appraisalCosts']").val(Math.round(sumMoney * 100) / 100);
        }

        //内部故障成本
        $(document).on("blur", ".internalFailure", internalFailureMoney);
        function internalFailureMoney() {
            var objArr = $(".internalFailure");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='internalFailureCost']").val(Math.round(sumMoney * 100) / 100);
        }

        //外部故障成本
        $(document).on("blur", ".externalFailure", externalFailureMoney);
        function externalFailureMoney() {
            var objArr = $(".externalFailure");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='externalFailureCost']").val(Math.round(sumMoney * 100) / 100);
        }

        //外部故障成本A
        $(document).on("blur", ".externalFailureA", externalFailureAMoney);
        function externalFailureAMoney() {
            var objArr = $(".externalFailureA");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='externalFailureCostA']").val(Math.round(sumMoney * 100) / 100);
        }

        //外部故障成本B
        $(document).on("blur", ".externalFailureB", externalFailureBMoney);
        function externalFailureBMoney() {
            var objArr = $(".externalFailureB");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='externalFailureCostB']").val(Math.round(sumMoney * 100) / 100);
        }

        //外部故障成本C
        $(document).on("blur", ".externalFailureC", externalFailureCMoney);
        function externalFailureCMoney() {
            var objArr = $(".externalFailureC");
            var sumMoney = 0;
            objArr.each(function () {
                var money = $(this).val();
                if (isNaN(money * 1)) {
                    return;
                }
                sumMoney += 1 * (money == "" ? 0 : money);
            });
            $("[name='externalFailureCostC']").val(Math.round(sumMoney * 100) / 100);
        }
        //- 计算总金额 绑事件 结束 -------------------------------------------------------------

        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdQualityCostDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback:function (data) {
                var returnData = data.data;
                $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span>" +
                    "<span class='qbdms-TBinformationText'>【"+returnData.filldept+"   | "+returnData.fillman+"  | "+returnData.filldate+"】</span>");
            },
            beforeSubmitFun:function (data) {
                data.field["year"] = new Date($("input[name='year']").val())
            },
            updateCallback: function (data) {
                if (common.filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = '${ctx}/qbdms/wQbdQualityCost/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }
        });

        var xhdh = eval('${xhdh}'); //型号代号
        var initXHDH = function (optionObj, item) {
            optionObj.text = item.fModelcode;
            optionObj.value = item.id;
            optionObj.setAttribute("xhmc", item.fModelname);
        };
        common.initDicData("modelCode", xhdh, "", initXHDH);

        form.render();
    });
</script>
</body>
</html>